3.328 \(\int \frac{\tan (c+d x)}{\sqrt{a+b \sec (c+d x)}} \, dx\)

Optimal. Leaf size=31 \[ -\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sec (c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d} \]

[Out]

(-2*ArcTanh[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a]])/(Sqrt[a]*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0426453, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3885, 63, 207} \[ -\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sec (c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d} \]

Antiderivative was successfully verified.

[In]

Int[Tan[c + d*x]/Sqrt[a + b*Sec[c + d*x]],x]

[Out]

(-2*ArcTanh[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a]])/(Sqrt[a]*d)

Rule 3885

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> -Dist[(-1)^((m - 1
)/2)/(d*b^(m - 1)), Subst[Int[((b^2 - x^2)^((m - 1)/2)*(a + x)^n)/x, x], x, b*Csc[c + d*x]], x] /; FreeQ[{a, b
, c, d, n}, x] && IntegerQ[(m - 1)/2] && NeQ[a^2 - b^2, 0]

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 207

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTanh[(Rt[b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\tan (c+d x)}{\sqrt{a+b \sec (c+d x)}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+x}} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=\frac{2 \operatorname{Subst}\left (\int \frac{1}{-a+x^2} \, dx,x,\sqrt{a+b \sec (c+d x)}\right )}{d}\\ &=-\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sec (c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d}\\ \end{align*}

Mathematica [B]  time = 0.192134, size = 108, normalized size = 3.48 \[ \frac{\sqrt{a \cos (c+d x)+b} \left (\log \left (1-\frac{\sqrt{a \cos (c+d x)+b}}{\sqrt{a \cos (c+d x)}}\right )-\log \left (\frac{\sqrt{a \cos (c+d x)+b}}{\sqrt{a \cos (c+d x)}}+1\right )\right )}{d \sqrt{a \cos (c+d x)} \sqrt{a+b \sec (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Tan[c + d*x]/Sqrt[a + b*Sec[c + d*x]],x]

[Out]

(Sqrt[b + a*Cos[c + d*x]]*(Log[1 - Sqrt[b + a*Cos[c + d*x]]/Sqrt[a*Cos[c + d*x]]] - Log[1 + Sqrt[b + a*Cos[c +
 d*x]]/Sqrt[a*Cos[c + d*x]]]))/(d*Sqrt[a*Cos[c + d*x]]*Sqrt[a + b*Sec[c + d*x]])

________________________________________________________________________________________

Maple [A]  time = 0.048, size = 26, normalized size = 0.8 \begin{align*} -2\,{\frac{1}{d\sqrt{a}}{\it Artanh} \left ({\frac{\sqrt{a+b\sec \left ( dx+c \right ) }}{\sqrt{a}}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(d*x+c)/(a+b*sec(d*x+c))^(1/2),x)

[Out]

-2*arctanh((a+b*sec(d*x+c))^(1/2)/a^(1/2))/d/a^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)/(a+b*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 2.88349, size = 373, normalized size = 12.03 \begin{align*} \left [\frac{\log \left (-8 \, a^{2} \cos \left (d x + c\right )^{2} - 8 \, a b \cos \left (d x + c\right ) - b^{2} + 4 \,{\left (2 \, a \cos \left (d x + c\right )^{2} + b \cos \left (d x + c\right )\right )} \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}\right )}{2 \, \sqrt{a} d}, \frac{\sqrt{-a} \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + b}\right )}{a d}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)/(a+b*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

[1/2*log(-8*a^2*cos(d*x + c)^2 - 8*a*b*cos(d*x + c) - b^2 + 4*(2*a*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a)*sq
rt((a*cos(d*x + c) + b)/cos(d*x + c)))/(sqrt(a)*d), sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + b)/cos(d
*x + c))*cos(d*x + c)/(2*a*cos(d*x + c) + b))/(a*d)]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan{\left (c + d x \right )}}{\sqrt{a + b \sec{\left (c + d x \right )}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)/(a+b*sec(d*x+c))**(1/2),x)

[Out]

Integral(tan(c + d*x)/sqrt(a + b*sec(c + d*x)), x)

________________________________________________________________________________________

Giac [B]  time = 1.55222, size = 147, normalized size = 4.74 \begin{align*} -\frac{2 \, \arctan \left (-\frac{\sqrt{a - b} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - \sqrt{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 2 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a + b} + \sqrt{a - b}}{2 \, \sqrt{-a}}\right )}{\sqrt{-a} d \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)/(a+b*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

-2*arctan(-1/2*(sqrt(a - b)*tan(1/2*d*x + 1/2*c)^2 - sqrt(a*tan(1/2*d*x + 1/2*c)^4 - b*tan(1/2*d*x + 1/2*c)^4
- 2*a*tan(1/2*d*x + 1/2*c)^2 + a + b) + sqrt(a - b))/sqrt(-a))/(sqrt(-a)*d*sgn(tan(1/2*d*x + 1/2*c)^2 - 1))